$(function() {
	// Hide all the content except the first
	$('.accordian li:odd:gt(0)').hide();
	$('.accordian li:first').addClass("accordian-new")
	// Add the dimension class to all the content
	//$('.accordian li:odd').addClass('dimension');
	
	// Set the even links with an 'even' class
	//$('.accordian li:even:even').addClass('even');
	
	// Set the odd links with a 'odd' class
	//$('.accordian li:even:odd').addClass('odd');
	
	// Show the correct cursor for the links
	$('.accordian li:even').css('cursor', 'pointer');
	
	// Handle the click event
	$('.accordian li:even').click( function() {
		// Get the content that needs to be shown
		 $(".accordian-old").css({backgroundImage:"url(../Images/services-down.png)"});
		var cur = $(this).css({backgroundImage:"url(../Images/services-left.png)"}).next();
		
		 // Get the content that needs to be hidden
		var old = $('.accordian li:odd:visible');
		// Make sure the content that needs to be shown 
		// isn't already visible
		if ( cur.is(':visible') )
			return false;
		
		// Hide the old content
		old.slideToggle(500);
		// Show the new content
		cur.stop().slideToggle(500);
		
		//$(this).stop().siblings().css({backgroundImage:"url(../Images/services-down.png)"});

		// Animate (add) the padding in the new link
		/*$(this).stop().animate( {
			//paddingLeft:"30px",
			//backgroundImage:"url(../Images/services-down.png)"
		} );*/
		
		// Animate (remove) the padding in the old link
		/*old.prev().stop().animate( {
			//paddingLeft:"10px"
			backgroundImage:"url(../Images/services-left.png)"
		} );*/
	} );
});